package com.hbsd.paopaobackend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hbsd.paopaobackend.model.domain.Message;
import com.hbsd.paopaobackend.model.domain.User;
import com.hbsd.paopaobackend.model.request.Message.MessageListRequest;
import com.hbsd.paopaobackend.model.vo.Message.MessageListResponse;

/**
* @author zzh
* @description 针对表【message】的数据库操作Service

*/
public interface MessageService extends IService<Message> {

    /**
     * 发送消息
     * @param message
     * @param loginUser
     * @return
     */
    Boolean send(Message message, User loginUser);

    /**
     * 获取消息列表
     * @param messageListRequest
     * @param loginUser
     * @return
     */
    Page<MessageListResponse> listMessagePage(MessageListRequest messageListRequest, User loginUser);
}
